<div class="pageContent">
	<form action="<?php echo url('web/taobao11');?>" method="post" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="60">
			
				<p><?php 
	$sql = "SELECT COUNT(*) as num,price FROM taobao_card  where used = 0  group by price";
	$cardcount = QDB::getConn()->execute($sql)->fetchAll();
//$cardcount = $card = Taobaocard::find("used = 0 ")->group('price')->getCount();
	$cardcount = Helper_Array::toHashmap($cardcount, 'price','num');
echo '当前剩余:';
foreach ($cardcount as $k=>$v)
{
	echo "{$k}元={$v}张 ";
}
?></p>
				<p>
				<label>平台账号：</label>
				<input type="text" class="required" value="<?php echo $_SESSION['acct']['acctname']?>" name="acctname" />
				</p>
				<p>
				<label>淘宝订单号：</label>
				<input type="text" class="required" name="orderid" value="" />
				</p>
				
				<p>
				<label>验证码：</label>
				<a href="#2" title="单击刷新此验证码"><img border=0 src="/interface/code" width="80" height="30" onClick="this.src='/interface/code/'+'?'+Math.random()" /></a> <input name="rndcode" class="required" type="text" size="6" >
				</p>
				<p>可以根据订单号和账号<a href="<?php echo url('interface/taobaohistory')?>" target="_balank"><font color="red">查询记录</font></a></p>
				
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button class="close" type="button">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div> 
